package com.clock.shop.domain.dto;

import java.util.Arrays;

/**
 * 用户兑换优惠券参数实体
 * @author CYJ
 */
public class ExchangeCouponDTO {
    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 店铺ID
     */
    private Long shopId;
    /**
     * 优惠券ID数组
     */
    private Long [] couponIds;

    /**
     * 兑换优惠券需要积分
     */
    private Integer couponNeedIntegral;

    /**
     * 用户现有积分
     */
    private Integer integralNum;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Long[] getCouponIds() {
        return couponIds;
    }

    public void setCouponIds(Long[] couponIds) {
        this.couponIds = couponIds;
    }

    public Integer getCouponNeedIntegral() {
        return couponNeedIntegral;
    }

    public void setCouponNeedIntegral(Integer couponNeedIntegral) {
        this.couponNeedIntegral = couponNeedIntegral;
    }

    public Integer getIntegralNum() {
        return integralNum;
    }

    public void setIntegralNum(Integer integralNum) {
        this.integralNum = integralNum;
    }

    @Override
    public String toString() {
        return "ExchangeCouponDTO{" +
                "userId=" + userId +
                "shopId=" + shopId +
                ", couponIds=" + Arrays.toString(couponIds) +
                ", couponNeedIntegral=" + couponNeedIntegral +
                ", integralNum=" + integralNum +
                '}';
    }
}
